package com.example.runningdemo.java8;

/**
 * @program: Running-Demo
 * @description: 函数式接口处理if else 分支
 * @author: kangwei
 * @create: 2024-08-12 08:47
 **/

@FunctionalInterface
public interface BranchHandleFunction {

    /**
     * runnable1: true 执行
     * runnable2: false 执行
     *
     * @param runnable1
     * @param runnable2
     */
    void trueOrFalseHandler(Runnable runnable1, Runnable runnable2);
}
